//
//  CJCompanyMessageCell.m
//  Boss
//
//  Created by admin on 2018/9/19.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "CJCompanyMessageCell.h"
@interface CJCompanyMessageCell()

@property (strong, nonatomic) IBOutlet UIImageView *companyLogo;

@property (strong, nonatomic) IBOutlet UIImageView *vImageView;
@property (strong, nonatomic) IBOutlet UILabel *companyName;
@property (strong, nonatomic) IBOutlet UILabel *companyLabel;
@property (strong, nonatomic) IBOutlet UILabel *dymaic;


@end

@implementation CJCompanyMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self.companyLogo setCornerRadius:5.0f];
    [self.companyLogo setBorderWithWidth:3 andColor:[UIColor hexStringToColor:@"#f7f7f7" alpha:1.0]];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(WYUserCenterModel *)model
{
    _model = model;
    [self.companyLogo sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@!default",model.firmLogo]]];
    if (model.firmCertificationStatus.integerValue) {
        self.vImageView.hidden = NO;
    }else{
        self.vImageView.hidden = YES;
    }
    self.companyLabel.text = model.firmName;
    self.companyName.text = model.brandName;
    
    self.dymaic.text = [NSString stringWithFormat:@"我的动态（%@）",model.dynamicNum];
    
    
}
@end
